package com.lboyang.seckill.service;

import com.lboyang.seckill.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lboyang.seckill.entity.vo.GoodsVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aiguodala
 * @since 2021-05-23
 */
public interface GoodsService extends IService<Goods> {

    /**
     * 查询所有商品vo
     * @return
     */
    List<GoodsVo> listGoodsVo();

    /**
     * 查询商品详情
     * @param goodsId
     * @return
     */
    GoodsVo getGoodsVoById(Long goodsId);
}
